<<<<<<< HEAD
<?php
class Pages extends CI_Controller {

    public function view($page = 'home')
    {
        if ( ! file_exists('application/views/pages/'.$page.'.php'))
        {
            // Whoops, we don't have a page for that!
            show_404();
        }
        
        $data['title'] = ucfirst($page); // Capitalize the first letter
        
//         $this->load->view('templates/header', $data);
//         $this->load->view('pages/'.$page, $data);
//         $this->load->view('templates/footer', $data);
        
        $this->load->library('layout');
        $this->layout->setSlot('header', $data);
        $this->layout->setSlot('content', $data, 'home.php');
        $this->layout->setSlot('footer');
        $this->layout->view($data);
    }
=======
<?php
class Pages extends CI_Controller {

    public function view($page = 'home')
    {
        if ( ! file_exists('application/views/pages/'.$page.'.php'))
        {
            // Whoops, we don't have a page for that!
            show_404();
        }
        
        $data['title'] = ucfirst($page); // Capitalize the first letter
        
//         $this->load->view('templates/header', $data);
//         $this->load->view('pages/'.$page, $data);
//         $this->load->view('templates/footer', $data);
        
        $this->load->library('layout');
        $this->layout->setSlot('header', $data);
        $this->layout->setSlot('content', $data, 'home.php');
        $this->layout->setSlot('footer');
        $this->layout->view($data);
    }
>>>>>>> 20d6c557d209a3f376420616f57b4bd953611975
}